package com.controller;
import com.search.bturls.BturlsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * Created by Tonight on 2017/4/6.
 */
@Controller
@RequestMapping("/test")
public class TestController {

    @Autowired
    BturlsService bturlsService;

    @RequestMapping("/test1")
    @ResponseBody
    public Object test() throws Exception
    {
        return bturlsService.getBtDataList("美人鱼",10);
    }
}
